package JavaCode;

import javafx.beans.binding.StringBinding;

import java.util.*;

/**
 * @Author Kechelle
 * @Date 2020/9/12 20:41
 * @Version 1.0
 */
public class Test3 {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in) ;
        String str = sc.next();
        System.out.println(helper(str));
    }
    public static String helper(String s){
        int x = 0;
        int y = 0;
        int n = s.length();
        for (int i = 0; i < n; i++) {
            char c = s.charAt(i);{
                if((c-'0')>=0&&(c-'0')<=9){
                    x++;
                }
                if(c>='a'&&c<='z'){
                    y++;
                }
            }
        }
        char[] zimu = new char[y];
        int[] number = new int[x];
        int j =0;
        for (int i = 0; i < n; i++) {
          char c = s.charAt(i);
          if((c-'0')>=0&&(c-'0')<=9){
              number[j] = (c-'0');
              j++;
          }
        }
        int b =0;
        for (int i = 0; i < n; i++) {
            char c = s.charAt(i);
            if((c)>='a'&&(c)<='z'){
                zimu[b] = (c);
                b++;
            }
        }
        ArrayList<Integer> list = new ArrayList<>();
        Collections.sort(list);
        Arrays.sort(zimu);
        Arrays.sort(number);
        StringBuilder sb = new StringBuilder();
        String.valueOf(number);
        for (int i = 0; i < zimu.length; i++) {
            sb.append(zimu[i]);
        }
        for (int i = 0; i < number.length; i++) {
            sb.append(number[i]);
        }
        String res = sb.toString();
        return res;
    }
}
